#define _CRT_SECURE_NO_WARNINGS

#include "my_string.h"

/*
int main() {
	// [test01] my_strlen
	char arr[20] = "hello world";
	printf("length: %u\n", my_strlen(arr));

	// [test02] my_strcpy
	char arr1[20] = "hello world";
	char arr2[20] = "january";
	printf("result: %s\n", my_strcpy(arr1, arr2));

	// [test03] my_strcat
	char arr1[20] = "january 24th";
	char arr2[20] = " 2025";
	printf("result: %s\n", my_strcat(arr1, arr2));

	// [test04] my_strcmp
	char arr1[20] = "hello";
	char arr2[20] = "hello";
	int ret = my_strcmp(arr1, arr2);
	if (ret > 0) {
		printf("result: >\n");
	}
	else if (ret == 0) {
		printf("result: ==\n");
	}
	else {
		printf("result: <\n");
	}

	// [test05] my_strstr
	char arr1[20] = "hello world";
	char arr2[20] = "llo";
	printf("result: %s\n", my_strstr(arr1, arr2));

	// [test06] my_memcpy
	char arr1[20] = "hello world";
	char arr2[20] = "january";
	printf("result: %s\n", my_memcpy(arr1, arr2, 7));

	// [test07] my_memmove
	double arr[20] = { 1.3, 4.56, 6.34, 34.52, 1.64, 123.56, 123.76 };
	my_memmove(arr + 3, arr + 2, 32);
	printf("result: ");
	for (int i = 0; i < 7; i++) {
		printf("%.2lf ", arr[i]);
	}
	return 0;
}
*/
